import { Result } from "@/model";
import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { WebsiteInfo } from "./types";

/**
 * 获取后台信息
 * @returns 后台信息
 */
export function getWebsiteInfo(): AxiosPromise<Result<WebsiteInfo>> {
  return request({
    url: "/admin",
    method: "get",
  });
}
